package com.ytjj.qmyx.admin.model.excel;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author jiawei
 * @date 2023年03月29日 16:03
 * @describe
 */
@Data
@ColumnWidth(20)
public class OrdersExceptionExcel{

    @ExcelProperty(value = "id")
    private Integer id;

    @ExcelProperty(value = "订单号")
    private String orderOn;

    @ColumnWidth(30)
    @ExcelProperty(value = "子订单号")
    private String childOrderNo;

    @ColumnWidth(30)
    @ExcelProperty(value = "商品名称")
    private String productName;

    @ExcelProperty(value = "用户名称")
    private String userName;

    @ExcelProperty(value = "用户电话")
    private String userTel;

    @ColumnWidth(30)
    @ExcelProperty(value = "收货地址")
    private String deliveryAddress;

    @ExcelProperty(value = "商家名称")
    private String bankerName;

    @ColumnWidth(30)
    @ExcelProperty(value = "支付时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payDate;

    @ExcelProperty(value = "快递单号")
    private String expressNo;

    @ExcelProperty(value = "快递公司编码")
    private String expressCode;

    @ColumnWidth(50)
    @ExcelProperty(value = "最新物流")
    private String expressRecord;

    @ColumnWidth(30)
    @ExcelProperty(value = "处理状态(填写项)")
    private String statusText;

    @ColumnWidth(35)
    @ExcelProperty(value = "处理备注(填写项)")
    private String handleNotes;

    @ColumnWidth(35)
    @ExcelProperty(value = "异常处理备注")
    private String exceptionDesc;

    @ColumnWidth(30)
    @ExcelProperty(value = "发货时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date deliveryTime;

    @ColumnWidth(30)
    @ExcelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ColumnWidth(30)
    @ExcelProperty(value = "异常时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date exceptionTime;

    @ColumnWidth(30)
    @ExcelProperty(value = "数据刷新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date taskUpdateTime;

    @ColumnWidth(15)
    @ExcelProperty(value = "是否完结(填写项)")
    private String notShow;

    @ColumnWidth(35)
    @ExcelProperty(value = "完结备注(填写项)")
    private String finishedRemarks;

    @ColumnWidth(30)
    @ExcelProperty(value = "新增备注(填写项)")
    private String newRemarks;

    @ExcelProperty(value = "处理人")
    private String handlePerson;

    @ColumnWidth(30)
    @ExcelProperty(value = "处理时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date handleTime;

    @ColumnWidth(35)
    @ExcelProperty(value = "物流异常描述")
    private String statusDesc;

    @ExcelProperty(value = "跟单小计")
    private String supervisorNote;

    @ExcelProperty(value = "补单信息")
    private String replenishmentInfo;

    @ExcelProperty(value = "送达地址")
    private String arrivalAddress;

    @ColumnWidth(80)
    @ExcelProperty(value = "历史处理记录")
    private String handleResult;

    /**
     * 处理状态 1->处理中 2->已处理
     */
    @ExcelIgnore
    private Integer status;

    /**
     * 是否完结 0-未完结 1-已完结
     */
    @ExcelIgnore
    private Integer isFinished;



}
